﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace RBAC.Domain
{
    /// <summary>
    /// 用户信息
    /// </summary>
    [Table("UserInfo")]
    public class UserInfo
    {
        /// <summary>
        /// 用户信息ID
        /// </summary>
        [Key]
        public int userInfoId { get; set; }
        /// <summary>
        /// 账号
        /// </summary>
        public string? userInfoName {  get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        public string? password { get; set; }
        /// <summary>
        /// 用户名
        /// </summary>
        public string? userName { get; set; }
        /// <summary>
        /// 性别
        /// </summary>
        public bool userSex { get; set; }
        /// <summary>
        /// 省份ID
        /// </summary>
        public int provinceId { get; set; }
        /// <summary>
        /// 市ID
        /// </summary>
        public int cityId { get; set; }
        /// <summary>
        /// 县ID
        /// </summary>
        public int countryId { get; set; }
        /// <summary>
        /// 详细地址
        /// </summary>
        public string? userAddress { get; set; }
        /// <summary>
        /// 删除标志
        /// </summary>
        public bool IsDel { get; set; } = false;

        /// <summary>
        /// 部门ID
        /// </summary>
        public int departmentId {  get; set; }

        /// <summary>
        /// 添加人
        /// </summary>
        public string? addName { get; set; }
        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime? addDate { get; set; }
        /// <summary>
        /// 修改人
        /// </summary>
        public string? updateName { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? updateDate { get; set; }
        /// <summary>
        /// 删除人
        /// </summary>
        public string? delName { get; set; }
        /// <summary>
        /// 删除时间
        /// </summary>
        public DateTime? delDate { get; set; }


    }
}
